﻿@using OnWork.DataCenter.DAL.DataCenter;
<ValidateForm Model="@Config" ValidateAllProperties="true">
    <div class="row g-3 form-inline">
        <div class="col-12 col-sm-6">
            <BootstrapInput ColSpan="2" @bind-Value="@Config.Name" />
        </div>
        <div class="col-12 col-sm-6">
            <Switch ColSpan="2" @bind-Value="@Config.Enable" />
        </div>
        <div class="col-12 col-sm-6">
            <Select ColSpan="2" @bind-Value="@Config.PeriodType" />
        </div>
        <div class="col-12 col-sm-6">
            <BootstrapInput ColSpan="2" IsTrim="true" @bind-Value="@Config.PeriodConfig" />
        </div>
        <div class="col-12 col-sm-9">
            <BootstrapInput ColSpan="6" @bind-Value="@Config.TaskConfigView" />
        </div>
        <div class="col-12 col-sm-3">
            <Button Text="流程配置" IsAsync="true" OnClick="@(()=>OnConfigClickAsync())"></Button>
        </div>
    </div>
</ValidateForm>

